<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $title;?><?php echo $lang['group_main_quan'].$lang['group_guestbook_all'];?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/pigzmo.js"></script>
<script language="javascript" type="text/javascript">
	window.onload=function (){
	pigzmo("subtitle","replaytitle",2,0);
	}
	function replies(_id){
	var _string;
	_string = document.getElementById("topic_"+_id).innerHTML;
	document.getElementById("reply_title").value = "[<?php echo $lang['group_topic_reply'];?>"+_id+"<?php echo $lang['group_topic_floor'];?>]"+_string;
	}
	function quote(_id){
	var _string;
	var _string2;
	_string2 = document.getElementById("topic_"+_id).innerHTML;
	_string = document.getElementById("quote_"+_id).innerHTML;
	document.getElementById("reply_title").value = "[<?php echo $lang['group_topic_quote'];?>"+_id+"<?php echo $lang['group_topic_floor'];?>]"+_string2;
	document.getElementById("group_fast_reply_label").value = "<div class='quote'>"+_string+"</div>";
	}
</script>
</head>

<body>
<div id="container">
<?php
require_once(dirname(__FILE__)."/top.htm");
?>
  <div id="group_class_main">
    <?php
    require_once(dirname(__FILE__)."/left.htm");
    ?>
    <div id="group_class_right">
      <div class="group_class_forum1">
       	  <div class="group_class_forum_title1">[<?php echo $title;?><?php echo $lang['group_main_quan'];?>] - <?php echo $lang['group_guestbook_all'];?>    	
          </div>
          <div class="group_class_button_bg">
          	<div class="group_class_button"><a href="guestbookform.php?id=<?php echo $id;?>"><?php echo $lang['group_guestbook_message'];?></a>
            </div>
            <div class="group_class_button1"><a href="group.php?id=<?php echo $id;?>"><?php echo $lang['group_guestbook_return'];?></a>
            </div>		
          </div>
          <?php
          $mylist = $dlist->GetDataList();
          while($rs = $mylist->GetArray('dm'))
          {
          $i++;
          ?>
          <div class="group_class_topic" id="topic_<?php echo $i;?>"><?php echo $rs['title'];?>
          </div>
        
          <div class="group_class_topic_text1">
          	<div class="group_class_topic_id"><?php echo $i;?><?php echo $lang['group_topic_floors'];?> <a href="/member/index.php?id=<?php echo $rs['userid'];?>" target="_blank"><?php echo $rs['uname'];?></a>  <?php echo date('y-m-d H:i:s',$rs['stime']);?> 
            </div>
            <div class="group_class_topic_reply"><a href="javascript:replies(<?php echo $i;?>);"><?php echo $lang['group_topic_reply'];?></a>
            </div>
            <div class="group_class_topic_quote"><a href="javascript:quote(<?php echo $i;?>);"><?php echo $lang['group_topic_quote'];?></a> <a href="guestbook.php?id=<?php echo $id;?>&do=del&bid=<?php echo $rs['bid'];?>" onClick="return(confirm('<?php echo $lang['group_notice_7'];?>'))"><?php if($ismaster) echo $lang['group_main_del'];?></a></div>
            <div class="group_class_topic_font" id="quote_<?php echo $i;?>">
            <?php 
            echo $rs['message'];
            ?>
            </div>
          </div>
          <?php
          }
          ?>      
        <div class="group_class_more"><?php echo $dlist->GetPageList(7);?></div>
   	  	</div>        
        <div class="clear">
     	</div>
        <form name="form1" action="guestbookform.php?id=<?php echo $id;?>" method="post">
        <input name="action" type="hidden" value="save">
    	<div class="group_fast_reply">
        <input name="subject" id="reply_title" type="hidden" value="" />
    		<div class="group_fast_reply_title"><?php echo $lang['group_guestbook_fastmessage'];?>
    		</div>
    		<div><textarea class="group_fast_reply_label" id="group_fast_reply_label" name="text"></textarea>
    		</div>
            <div>
            <?php echo $lang['group_main_vdcodes'];?><input name="vdcode" type="text" id="vdcode" style='height:18;width:50' size="13"> <img src='../include/vdimgck.php' width='50' height='20' align="absmiddle"> <?php echo $lang['group_notice_8'];?>
            </div>
    		<div style="margin-top:10px;"><input type="submit" value="<?php echo $lang['group_main_submit'];?>" /> 
  			</div>
  		</div>
        </form>    
    </div>
    <div class="clear">
    </div>
  </div>
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>